package com.itboye.ihomebank.adapter;

import java.util.List;

import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Toast;

import com.itboye.ihomebank.R;
import com.itboye.ihomebank.bean.AreaBean;
import com.itboye.ihomebank.support.commonadapter.MutiplyCommonAdapter;
import com.itboye.ihomebank.support.commonadapter.ViewHolder;

/***
 * 示例adapter
 * 
 * @author mr.w
 * 
 */
public class AreaAdapter extends MutiplyCommonAdapter<AreaBean> {

	int position;

	public AreaAdapter(Context context, List<AreaBean> datas, int... layoutId) {
		super(context, datas, layoutId);
		// TODO Auto-generated constructor stub
	}

	@Override
	public int getItemViewType(int position) {
		// TODO Auto-generated method stub

		return 0;
	}

	@Override
	public void convert(ViewHolder holder, AreaBean t, int type,
			final int position) {
		// TODO Auto-generated method stub
		holder.setText(R.id.text, t.getCommunityName());
	}

	@Override
	public void getItemPosition(int position) {
		// TODO Auto-generated method stub
		this.position = position;
	}

}
